package com.zzl.finance.data.dto;

import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import com.zzl.apidoc.constants.RequiredType;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author ：hyt
 * @description：企业账户
 * @date ：2022/2/16 18:53
 */
@Data
@ApidocModel
@SuppressWarnings("javadoc")
public class VoucherBankAccountUpdateDto {

    @ApidocModelProperty(description = "银行账户id")
    private String id;
    @NotBlank(message = "账户名称不能为空!")
    @ApidocModelProperty(description = "账户名称",required = RequiredType.TRUE)
    private String accountName;
    @NotNull(message = "账户类型不能为空!")
    @ApidocModelProperty(description = "账户类型 0基本户1一般户2专用3临时",required = RequiredType.TRUE)
    private Integer accountType;

    @ApidocModelProperty(description = "开户行全称：银行支行",required = RequiredType.TRUE)
    @NotNull(message = "开户行全称不能为空!")
    private String fullNameOpeningBank;
    @ApidocModelProperty(description = "地区code")
    private String areaId;
    @NotNull(message = "开户行所在省不能为空!")
    @ApidocModelProperty(description = "开户行所在省",required = RequiredType.TRUE)
    private String province;
    @NotNull(message = "开户行所在市不能为空!")
    @ApidocModelProperty(description = "开户行所在市",required = RequiredType.TRUE)
    private String city;

    @ApidocModelProperty(description = "开户网点：银行名称",required = RequiredType.TRUE)
    @NotBlank(message = "开户网点不能为空!")
    private String accountOpeningOutlet;
    @ApidocModelProperty(description = "对公账户：账户号码",required = RequiredType.TRUE)
    @NotBlank(message = "对公账户不能为空!")
    private String corporateAccount;
    @ApidocModelProperty(description = "联行号",required = RequiredType.TRUE)
    @NotBlank(message = "联行号不能为空")
    private String bankNumber;
    @ApidocModelProperty(description = "备注")
    private String remark;


}
